package com.egreen.common.pojo.entity.system;

import java.time.LocalDateTime;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 *
 * </p>
 *
 * @author cloudJiang
 * @since 2022-07-16
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class Commodity implements Serializable {

    private static final long serialVersionUID = 1L;

    private Integer id;

    /**
     * 商品名称
     */
    private String name;

    /**
     * 商品价格
     */
    private Double price;

    /**
     * 剩余商品数量
     */
    private Integer remainingQuantity;

    /**
     * 商品上架时间
     */
    private LocalDateTime launchTime;

    /**
     * 商品图片链接
     */
    private String url;

    /**
     * 商品历史价格
     */
    private String historyPrice;

    /**
     * 版本号，用于实现乐观锁
     */
    private Integer version;

}
